import 'package:amap_flutter_base/amap_flutter_base.dart';
import 'package:amap_flutter_map/amap_flutter_map.dart';
import 'package:get/get_rx/src/rx_types/rx_types.dart';

import '../keys.dart';

enum MapPaintState { idle, painting, finish }

class LocationState {
  final apiKey =
      const AMapApiKey(androidKey: key_amap_android, iosKey: key_amap_ios);
  final statement = const AMapPrivacyStatement(
      hasContains: true, hasShow: true, hasAgree: true);
  AMapController? mapCtrl;
  Map<String, Polygon> polygons = {};
  bool scaleEnable = true;
  List<LatLng> points = [];
  Map<String, Marker> markers = {};
  Map<String, Polyline> poylines = {};
  var paintState = MapPaintState.idle.obs;
  var mapType = MapType.normal;
}
